package com.xbongbong.pro.domain.entity;

import com.xbongbong.paas.enums.DelEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @date 2021/03/03 14:22
 */
@Setter
@Getter
@ToString
public class LowCodeJsFileEntity implements Serializable {


    private static final long serialVersionUID = -8024207639158715885L;
    private Long id;

    private String corpid;

    private Long formId;

    private Integer saasMark;

    private Integer businessType;

    private String unreleased;

    private String publish;

    private Integer whetherToPublish;

    private String creatorId;

    private Long addTime;

    private Long updateTime;

    private Integer del;

    public LowCodeJsFileEntity(String corpid, Long formId, Integer saasMark, Integer businessType, String unreleased, String release, Integer whetherToPublish, String creatorId) {
        this.corpid = corpid;
        this.formId = formId;
        this.saasMark = saasMark;
        this.businessType = businessType;
        this.unreleased = unreleased;
        this.publish = release;
        this.whetherToPublish = whetherToPublish;
        this.creatorId = creatorId;
        this.del = DelEnum.NORMAL.getDel();
    }

    public LowCodeJsFileEntity(Long id, String unreleased, Integer whetherToPublish) {
        this.id = id;
        this.unreleased = unreleased;
        this.whetherToPublish = whetherToPublish;
    }


    public LowCodeJsFileEntity(Long id, String unreleased, String release, Integer whetherToPublish) {
        this.id = id;
        this.unreleased = unreleased;
        this.publish = release;
        this.whetherToPublish = whetherToPublish;
    }

    public LowCodeJsFileEntity() {
        this.del = DelEnum.NORMAL.getDel();
    }
}
